package cn.hnevc.xiaohui;

import java.io.IOException;

public class ExampleTest {

	/*public static void main(String[] args) {
		// TODO 自动生成的方法存根
     Runtime runtime =Runtime.getRuntime();
     try {
     runtime.exec("notepad.exe");
	}catch(IOException e) {
		e.printStackTrace();
	}
     }*/
	public static void main(String[] args) throws IOException, InterruptedException {
		Runtime runtime =Runtime.getRuntime();
	       Process process=runtime.exec("notepad.exe");
			Thread.sleep(3000);//休眠三秒
			process.destroy();
	
	}

}
